package com.zerui.manager.accessauthorization.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zerui.manager.accessauthorization.AccessAuth;
import com.zerui.manager.accessauthorization.entity.AccessAuthDo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


/**
 * @Author wh
 * @create_time 2023-08-23 15:28
 */
@Mapper
public interface AccessAuthConvert {

	AccessAuthConvert INSTANCE = Mappers.getMapper(AccessAuthConvert.class);

	AccessAuthDo convertAccessAuthToAccessAuthDo(AccessAuth accessAuth);

	AccessAuth convertAccessAuthDoToAccessAuth(AccessAuthDo accessAuthDo);

	Page<AccessAuth> convertAccessAuthDoToAccessAuthPage(Page<AccessAuthDo> accessAuthDoPage);

	List<AccessAuth> convertAccessAuthDosToAccessAuths(List<AccessAuthDo> accessAuthDos);
}
